import ybutton from './y_button/index.vue'
import ytoast from './y_toast/index'
import yinput from './y_input/index.vue'


// button组件
export const YButton = ybutton
// input组件
export const YInput = yinput

//toast方法
export const YToast = ytoast

export default {
    install(Vue: any){
        // 注册提示
        Vue.config.globalProperties.$toast = YToast
        // 注册组件
        Vue.component(YButton.name,YButton)
        Vue.component(YInput.name,YInput)
    }
}